<?php


class template_menu extends theme
{
	
	protected function toolbar()
	{
	$group_list = $this->get('group_list');
	?>
<div class="box">
	<div class="box-tl"><div class="box-tr"><div class="box-tm"></div></div></div>	
	<div class="box-m">
		<div class="toobar">
			<?php 
			foreach($group_list as $group)
			{
				echo '<a href="./?controller=menu&task=listing&group_id='.$group->id.'">'.$group->name.'</a> &nbsp; | &nbsp; ';
			}
			?>
			<a href="./?controller=menu&task=group_listing">菜单组</a>
		</div>
	</div>
	<div class="box-bl"><div class="box-br"><div class="box-bm"></div></div></div>
</div>
	<?php
	$this->message();
	}

}
?>